#!/bin/bash
#打印字母长度小于6的单词

for s in Bash also interprets a number of multi-character options.
do
  n=`echo $s|wc -c`
  if [ $n -lt 6 ]
  then
    echo $s
  fi
done

for s in tangzq122 chensy lij wangzzzz test1231231; do
#先获取长度
n=$(echo ${s}|wc -c)
if [ ${n} -lt 6 ]; then
echo ${s}
fi

done

